package com.xuan.contest.entry;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 *
 * @author XinZhaoXuan
 * @Date 2018-09-07 09:41
 */
@Data
@TableName("t_contest")
@EqualsAndHashCode(callSuper = false)
public class ContestEntity extends Model<ContestEntity> {
     /**
     * Id
     *
     */
	@TableId(value = "id", type= IdType.AUTO)
	private Integer id;

     /**
     * TestWinnerNumber
     *
     */
     @TableField("test_winner_number")
	private Integer testWinnerNumber;

     /**
     * WinnerNumber
     *
     */
     @TableField("winner_number")
	private Integer winnerNumber;

     /**
     * Version
     *
     */
	private Integer version;

     /**
     * Version
     *
     */
    @TableField("start_time")
	private Date startTime;

     /**
     * Version
     *
     */
     @TableField("end_time")
	private Date endTime;

     /**
     * Version
     *
     */
     @TableField("status")
	private String status;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
